package cn.buk.api.shdl.dto;

import java.util.List;

public class TicketFareInfo {
  /**
   * fare 在这个ticket
   * 中的编号
   */
  private int id;

  /**
   * fare 的唯一编号
   * 通过这个id 可以在最外层的
   * fares 集合中找到对应的fare
   * 信息，包括fare origin,dest,fbc
   * 等
   */
  private int fareId;

  /**
   * 运价对应的航班
   * 信息
   */
  private List<TicketFareFlight> flights;

  /**
   * 是否可以变更
   */
  private boolean changeable;
  /**
   * 是否可以i退票
   */
  private boolean refundable;
  /**
   * 是否可以升舱
   */
  private boolean upgradable;
  /**
   * 去程运价/回程运
   * 价标识
   * 0：outbound,1:inbound
   */
  private int io;

  /**
   * 运价对应的服务
   * 等级
   */
  private String cabin;

  public int getFareId() {
    return fareId;
  }

  public void setFareId(int fareId) {
    this.fareId = fareId;
  }

  public List<TicketFareFlight> getFlights() {
    return flights;
  }

  public void setFlights(List<TicketFareFlight> flights) {
    this.flights = flights;
  }

  public boolean isChangeable() {
    return changeable;
  }

  public void setChangeable(boolean changeable) {
    this.changeable = changeable;
  }

  public boolean isRefundable() {
    return refundable;
  }

  public void setRefundable(boolean refundable) {
    this.refundable = refundable;
  }

  public boolean isUpgradable() {
    return upgradable;
  }

  public void setUpgradable(boolean upgradable) {
    this.upgradable = upgradable;
  }

  public int getIo() {
    return io;
  }

  public void setIo(int io) {
    this.io = io;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getCabin() {
    return cabin;
  }

  public void setCabin(String cabin) {
    this.cabin = cabin;
  }
}
